package com.weirong.smartvault.dao;

import com.weirong.smartvault.entity.StockHistory;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 于2017/12/18由 KFEB4 创建 .
 */
@Repository
@Qualifier("stockHistoryRepository")
public interface StockHistoryRepository extends JpaRepository<StockHistory,Integer>{
    List<StockHistory> findAllByModifyTimeBetweenAndTypeCode(Date start, Date end, String typeCode);
    Integer countAllByModifyTimeBetweenAndTypeCode(Date start, Date end, String typeCode);
}
